﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Travelers.Core;
using ICSharpCode.TextEditor.Document;


namespace Travelers.Forms
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            this.textEditorControl1.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Compilers c = new Compilers(this.textEditorControl1.Text.Trim(), this.textBox1.Text.Trim(), this.textBox2.Text.Trim(), this.textBox3.Text,null);
            c.Run();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Compilers c = new Compilers("","TaobaoTour","","", "TaobaoTour.cs");
            c.Run();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Compilers c = new Compilers("", "YahooTour", "", "", "YahooTour.cs");
            c.Run();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Compilers c = new Compilers("", "AlibabaTour", "", "", "AlibabaTour.cs");
            c.Run();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Compilers c = new Compilers("", "BaiduTour", "", "", "BaiduTour.cs");
            c.Run();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.2081.org/labs.html");
        }

     

      
    }
}
